define([

    //  Dependancy scripts
    // ---------------------------
    'backbone',

    //  Template scripts
    // ---------------------------
    "text!app/template/day-view-template.html"

], function(Backbone , dayTemplate)
{
    'use strict';

    var Day = Backbone.View.extend(
    {
        className : 'day',

        render : function() 
        {
            this.$el.html(_.template(dayTemplate, this.model.toJSON()));
            return this;    
        }    
    });

    return Day
});